{temp('kefu/head')}
</head>
<body>
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i>首页
	<span class="c-gray en">&gt;</span>反馈管理
	<span class="c-gray en">&gt;</span>建议列表
	<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
		<i class="Hui-iconfont">&#xe68f;</i>
	</a>
</nav>
<div class="pd-20">
	<div class="mt-20">
		<table class="table table-border table-bordered table-bg table-hover table-sort">
			<thead>
				<tr class="text-c">
					<th width="25"><input type="checkbox" name="" value=""></th>
					<th width="80">ID</th>
					<th>标题</th>
					<th width="120">发布时间</th>
					<th width="120">状态</th>
					<th width="120">操作</th>
				</tr>
			</thead>
			<tbody>
			{if(@$xw)}
				{foreach($xw as $k=>$v)}
				<tr class="text-c">
					<td><input type="checkbox" value="{$v['id']}" name="checkbox"></td>
					<td>{$v['id']}</td>
					<td class="text-l">
						<span class="text-primary">
						{$v['content']}
						</span>
					</td>
					<td>{code(echo date('Y-m-d H:i',$v['time']))}</td>
					<td>{if($v['zt'] == 1)}已处理{else}未处理{/if}</td>
					<td class="f-14 td-manage">
						<a style="text-decoration:none" class="ml-5" onClick="article_edit('查看详情','{$_url}/kefu/?act=fankui&met=jianyi_xx&id={$v['id']}',{$v['id']})" href="javascript:;" title="审核">
							<i class="Hui-iconfont">&#xe626;</i>
						</a>
					</td>
				</tr>
				{/foreach}
			{/if}
			</tbody>
		</table>
		<div style="background-color:#212333;width:50px;cursor:pointer;margin-top:50px;"  onclick="jy()">建议</div>
	</div>
</div>
<script type="text/javascript">
$('.table-sort').dataTable({
	"aaSorting": [[ 1, "desc" ]],//默认第几个排序
	"bStateSave": true,//状态保存
});

function jy(){
	$.post('{$_url}/kefu/?act=fankui&met=jianyi_c',{content:'jiowqeu5984'},function(data){
		alert(data);return ;
		if(data == 'cg'){
			layer.alert('修改成功');return ;
		}else if(data == 'error'){
			layer.alert('修改失败');return ;
		}
	});
}

/*新闻-编辑*/
function article_edit(title,url,id,w,h){
	var index = layer.open({
		type: 2,
		title: title,
		content: url
	});
	layer.full(index);
}
</script>
{temp('kefu/foot')}
</body>
</html>